/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufscar.compiladores.ast;


public class NumberExpr extends Expr {
    
    private int value;
    
    public NumberExpr(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void genC(PW pw, boolean putParenthesis) {
        pw.out.print(value);
    }

    public Type getType() {
        return Type.integerType;
    }
    
}